const { getCache } = require("../utils/cache_tool");
const { BaseCommand } = require("./base");

class ReadCacheCommand extends BaseCommand {
    async execute() {
        return await getCache(
            this.selfData.cache_key,
            this.selfData.cache_type,
            this.selfData.cache_param,
        );
    }
}

module.exports = {
    ReadCacheCommand,
};
